<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use PhpParser\Builder\Class_;
class city extends Model
{
    //制定表名
    protected $table = 'city';
    //
    protected $primaryKey = 'id';

    //指定允许批量赋值的字段-create方法创建不报错
    protected $fillable = ['name','num_people'];

    /**
     * 不可批量赋值的属性。
     *
     * @var array
     */
//    protected $guarded = ['id'];

    public $timestamps = false;

}